package ru.bytedog.oiot.counter.bot.service.command;

import org.telegram.telegrambots.meta.api.objects.Message;
import ru.bytedog.oiot.counter.bot.bean.BotAnswer;

public interface BotCommand {

    CommandEnum getCommand();

    BotAnswer commandProcess(Message message);

    default BotAnswer parseAnswer(String chatId) {
        BotAnswer answer = new BotAnswer();
        answer.setMessage("Ошибка при обработке команды");
            answer.setChatId(chatId);
            return answer;


    }

}
